import request from '@/utils/request'

export const userRegisterService = ({username, password}: {username: string, password: string}) => {
  return request.post('/api/user/register', {
    username,
    password
  })
}

export const userLoginService = ({username, password}: {username: string, password: string}) => {
  return request.post('/api/user/login', {
    username,
    password
  })
}